﻿#ifndef CHAT_MESSAGE_DEFINE_H
#define CHAT_MESSAGE_DEFINE_H

enum ChatMsgType
{
  ChatType_Text       = 1,   //文本
  ChatType_Image      = 3,   //图片
  ChatType_Voice      = 34,  //
  ChatType_Video      = 43,  //
  ChatType_Emotion    = 47,  //表情
  ChatType_Extend     = 49,  //扩展信息，如小程序，或者聊天记录等
  ChatType_ShortVideo = 62,  //小视频
};

enum FavoriteType
{
  FavType_Text             = 1,
  FavType_Image            = 2,
  FavType_Video            = 4,
  FavType_Link             = 5,
  FavType_Location         = 6,   //位置信息
  FavType_File             = 8,
  FavType_ChatHistory      = 14,  //聊天记录
  FavType_Video2           = 15,  //视频
  FavType_Extend           = 16,  //扩展?
  FavType_InnerChatHistory = 17,  //聊天记录里面的聊天记录
  FavType_WeChatNote       = 18,  //笔记
  FavType_MiniProgram      = 19,  //小程序
  FavType_ShiPinHao        = 20,  //视频号
};

// html聊天记录
#define FAV_BIG_IMAGE(ID)         (ID + ".image")
#define FAV_SMALL_IMAGE(ID)       (ID + "_th.image")
#define FAV_FILE_RESOURCE(ID,FMT) (ID + "." + FMT)
#define FAV_VIDEO_FILE(ID)        (ID + ".mp4")
#define FAV_VIDEO_THUMB(ID)       (ID + "_th.image")
#define FAV_LINK_THUMB(ID)        (ID + "_th.image")
#define FAV_SUB_HISTORY_HTML(ID)  ("fav_sub_chat_" + ID + ".html")
#define FAV_CHAT_HISTORY_HTML(ID) ("fav_chat_" + ID + ".html")

#endif  // CHAT_MESSAGE_DEFINE_H
